﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class SumUtils
    {
        public int SumAdd(int a, int b)
        {
            return a + b;
        }
        public double SumAdd(double c, double d)
        {
            return c + d;
        }
        public string SumAdd(string e, string f)
        {
            return e + f;
        }

        public int SumAdd(int g)
        {
            int sum = 0;
            for (int i = 1; i <= g; i++)
            {
                sum = sum + i;
            }
            return sum;
        }
    }
}
